package com.yixin.hospital.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 就诊表
 * @TableName visit
 */
@TableName(value ="visit")
@Data
public class Visit implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 导诊号
     */
    private String guidanceCode;

    /**
     * 医生id
     */
    private Long doctorId;

    /**
     * 患者id
     */
    private Long patientId;

    /**
     * 处方开始时间
     */
    private LocalDateTime startUsageTime;

    /**
     * 处方结束时间
     */
    private LocalDateTime endUsageTime;

    /**
     * 处方天数
     */
    private Integer planUsageDays;


    /**
     * 分装药品处方总价
     */
    private BigDecimal subPackagePlanTotalAmount;

    /**
     * 分装药品实际总价
     */
    private BigDecimal subPackageRealTotalAmount;

    /**
     * 整装药品实际总价
     */
    private BigDecimal packageRealTotalAmount;

    /**
     * 检查项实际总价
     */
    private BigDecimal inspectionRealTotalAmount;

    /**
     * 检查项实际总价
     */
    private BigDecimal herbalRealTotalAmount;

    /**
     * 处方总价
     */
    private BigDecimal planTotalAmount;

    /**
     * 实际总价
     */
    private BigDecimal realTotalAmount;

    /**
     * 日均价
     */
    private BigDecimal dailyAveragePrice;

    /**
     * 月均价（28天）
     */
    private BigDecimal monthlyAveragePrice;

    /**
     * 药房提醒
     */
    private String drugMark;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}